package nbcp.base.comm

import nbcp.base.utils.UrlUtil
import org.slf4j.LoggerFactory

open class JsonMap : StringKeyMap<Any?> {
    companion object {
        private val logger = LoggerFactory.getLogger(this::class.java.declaringClass)

        /**
         * 忽略
         */
        @JvmStatic
        @JvmOverloads
        fun loadFromUrl(urlQueryString: String, soloIsTrue: Boolean = false): JsonMap {
            return UrlUtil.urlQueryToJson(urlQueryString, soloIsTrue)
        }
    }

    constructor() : super() {
    }

    constructor(data: Map<String, Any?>) : super(data) {
    }

    constructor(vararg pairs: Pair<String, Any?>) : super(*pairs) {
    }

    constructor(data: Collection<Pair<String, Any?>>) : super(data) {
    }
}


